﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Text;

using System.Threading.Tasks;

namespace JXC.Core.Models
{
    /// <summary>
    /// 采购计划单主文件
    /// </summary>
    public class CaigouPlan
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Guid Id { set; get; }//采购计划单号
        public string Depart { set; get; }//部门
        public DateTime PlanDate { set; get; }//计划日期

        [ForeignKey("UserInfosId")]
        public Guid PlannerID { set; get; }//计划人
        public string Others { set; get; }//备注

        [ForeignKey("UserInfosId")]
        public Guid OperatorID { set; get; }//操作人
        public DateTime InDate { set; get; }//录入日期

        [ForeignKey("UserInfosId")]
        public Guid? ExaminerID { set; get; }//审核人
        public int ExamineState { get; set; } //审核状态   1:审核通过      2:审核不通过
       
        public int Deal { get; set; }  //是否处理  1:已处理  2：未处理
      
        public UserInfos UserInfos { get; set; }

    }
}
